MarqueeView

constructor(context: Context, module: Module)

Constructs a new MarqueeView.

Initializes internal structures, paint objects, and loads default resources like the bullet image. It configures the view to use software rendering, which can be beneficial for complex drawing operations or large font sizes that might have issues with hardware acceleration.

The behavior and content of the marquee are primarily determined by the provided Module object.

Parameters

context

The Context the view is running in, through which it can access the current theme, resources, etc.

module

The Module data that defines the configuration, content (playlist), and appearance (options) of this marquee. Must not be null.

Throws

if the provided module is null, as it is essential for the marquee's operation.